package lws.com.liwushuo.bean.shouye;

import java.util.List;

/**
 * Created by ZQ on 2016/10/18.
 */

public class SearchSecondTopBean {

    /**
     * code : 200
     * data : {"paging":{"next_url":"http://api.liwushuo.com/v2/search/post?sort=&limit=2&keyword=%E7%94%9F%E6%97%A5&offset=2"},"posts":[{"ad_monitors":[],"author":{"avatar_url":"http://img02.liwushuo.com/image/160617/hzkkl1ohn.jpg","avatar_webp_url":null,"created_at":1465802857,"id":1,"nickname":"小礼君"},"column":{"banner_image_url":"http://img01.liwushuo.com/image/160623/56osnquwa.jpg-w300","category":"礼物","cover_image_url":"http://img01.liwushuo.com/image/160628/fwwz5zua2.jpg-w720","created_at":1466495336,"description":"完美礼物指南，送亲人送爱人送友人送陌生人，一次性拯救你的选礼困难症。","id":59,"order":-1,"post_published_at":1472860800,"status":0,"subtitle":"已完结","title":"万能礼物清单","updated_at":1473318701},"cover_image_url":"http://img02.liwushuo.com/image/160321/gf2f4p7bb.jpg-w720","cover_webp_url":"http://img02.liwushuo.com/image/160321/gf2f4p7bb.jpg?imageView2/2/w/720/q/85/format/webp","hidden_cover_image":false,"id":1039447,"liked":false,"likes_count":36997,"media_type":0,"published_at":1458964800,"selection":0,"title":"为火爆白羊准备生日party，让Ta秒变温顺","type":"post"},{}],"total":55}
     * message : OK
     */

    private int code;
    /**
     * paging : {"next_url":"http://api.liwushuo.com/v2/search/post?sort=&limit=2&keyword=%E7%94%9F%E6%97%A5&offset=2"}
     * posts : [{"ad_monitors":[],"author":{"avatar_url":"http://img02.liwushuo.com/image/160617/hzkkl1ohn.jpg","avatar_webp_url":null,"created_at":1465802857,"id":1,"nickname":"小礼君"},"column":{"banner_image_url":"http://img01.liwushuo.com/image/160623/56osnquwa.jpg-w300","category":"礼物","cover_image_url":"http://img01.liwushuo.com/image/160628/fwwz5zua2.jpg-w720","created_at":1466495336,"description":"完美礼物指南，送亲人送爱人送友人送陌生人，一次性拯救你的选礼困难症。","id":59,"order":-1,"post_published_at":1472860800,"status":0,"subtitle":"已完结","title":"万能礼物清单","updated_at":1473318701},"cover_image_url":"http://img02.liwushuo.com/image/160321/gf2f4p7bb.jpg-w720","cover_webp_url":"http://img02.liwushuo.com/image/160321/gf2f4p7bb.jpg?imageView2/2/w/720/q/85/format/webp","hidden_cover_image":false,"id":1039447,"liked":false,"likes_count":36997,"media_type":0,"published_at":1458964800,"selection":0,"title":"为火爆白羊准备生日party，让Ta秒变温顺","type":"post"},{}]
     * total : 55
     */

    private DataBean data;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        @Override
        public String toString() {
            return "DataBean{" +
                    "paging=" + paging +
                    ", total=" + total +
                    ", posts=" + posts +
                    '}';
        }

        /**
         * next_url : http://api.liwushuo.com/v2/search/post?sort=&limit=2&keyword=%E7%94%9F%E6%97%A5&offset=2
         */


        private PagingBean paging;
        private int total;
        /**
         * ad_monitors : []
         * author : {"avatar_url":"http://img02.liwushuo.com/image/160617/hzkkl1ohn.jpg","avatar_webp_url":null,"created_at":1465802857,"id":1,"nickname":"小礼君"}
         * column : {"banner_image_url":"http://img01.liwushuo.com/image/160623/56osnquwa.jpg-w300","category":"礼物","cover_image_url":"http://img01.liwushuo.com/image/160628/fwwz5zua2.jpg-w720","created_at":1466495336,"description":"完美礼物指南，送亲人送爱人送友人送陌生人，一次性拯救你的选礼困难症。","id":59,"order":-1,"post_published_at":1472860800,"status":0,"subtitle":"已完结","title":"万能礼物清单","updated_at":1473318701}
         * cover_image_url : http://img02.liwushuo.com/image/160321/gf2f4p7bb.jpg-w720
         * cover_webp_url : http://img02.liwushuo.com/image/160321/gf2f4p7bb.jpg?imageView2/2/w/720/q/85/format/webp
         * hidden_cover_image : false
         * id : 1039447
         * liked : false
         * likes_count : 36997
         * media_type : 0
         * published_at : 1458964800
         * selection : 0
         * title : 为火爆白羊准备生日party，让Ta秒变温顺
         * type : post
         */

        private List<PostsBean> posts;

        public PagingBean getPaging() {
            return paging;
        }

        public void setPaging(PagingBean paging) {
            this.paging = paging;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<PostsBean> getPosts() {
            return posts;
        }

        public void setPosts(List<PostsBean> posts) {
            this.posts = posts;
        }

        public static class PagingBean {
            private String next_url;

            public String getNext_url() {
                return next_url;
            }

            public void setNext_url(String next_url) {
                this.next_url = next_url;
            }
        }

        public static class PostsBean {
            @Override
            public String toString() {
                return "PostsBean{" +
                        "author=" + author +
                        ", column=" + column +
                        ", cover_image_url='" + cover_image_url + '\'' +
                        ", cover_webp_url='" + cover_webp_url + '\'' +
                        ", hidden_cover_image=" + hidden_cover_image +
                        ", id=" + id +
                        ", liked=" + liked +
                        ", likes_count=" + likes_count +
                        ", media_type=" + media_type +
                        ", published_at=" + published_at +
                        ", selection=" + selection +
                        ", title='" + title + '\'' +
                        ", type='" + type + '\'' +
                        ", ad_monitors=" + ad_monitors +
                        '}';
            }

            /**
             * avatar_url : http://img02.liwushuo.com/image/160617/hzkkl1ohn.jpg
             * avatar_webp_url : null
             * created_at : 1465802857
             * id : 1
             * nickname : 小礼君
             */


            private AuthorBean author;
            /**
             * banner_image_url : http://img01.liwushuo.com/image/160623/56osnquwa.jpg-w300
             * category : 礼物
             * cover_image_url : http://img01.liwushuo.com/image/160628/fwwz5zua2.jpg-w720
             * created_at : 1466495336
             * description : 完美礼物指南，送亲人送爱人送友人送陌生人，一次性拯救你的选礼困难症。
             * id : 59
             * order : -1
             * post_published_at : 1472860800
             * status : 0
             * subtitle : 已完结
             * title : 万能礼物清单
             * updated_at : 1473318701
             */

            private ColumnBean column;
            private String cover_image_url;
            private String cover_webp_url;
            private boolean hidden_cover_image;
            private int id;
            private boolean liked;
            private int likes_count;
            private int media_type;
            private int published_at;
            private int selection;
            private String title;
            private String type;
            private List<?> ad_monitors;

            public AuthorBean getAuthor() {
                return author;
            }

            public void setAuthor(AuthorBean author) {
                this.author = author;
            }

            public ColumnBean getColumn() {
                return column;
            }

            public void setColumn(ColumnBean column) {
                this.column = column;
            }

            public String getCover_image_url() {
                return cover_image_url;
            }

            public void setCover_image_url(String cover_image_url) {
                this.cover_image_url = cover_image_url;
            }

            public String getCover_webp_url() {
                return cover_webp_url;
            }

            public void setCover_webp_url(String cover_webp_url) {
                this.cover_webp_url = cover_webp_url;
            }

            public boolean isHidden_cover_image() {
                return hidden_cover_image;
            }

            public void setHidden_cover_image(boolean hidden_cover_image) {
                this.hidden_cover_image = hidden_cover_image;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public boolean isLiked() {
                return liked;
            }

            public void setLiked(boolean liked) {
                this.liked = liked;
            }

            public int getLikes_count() {
                return likes_count;
            }

            public void setLikes_count(int likes_count) {
                this.likes_count = likes_count;
            }

            public int getMedia_type() {
                return media_type;
            }

            public void setMedia_type(int media_type) {
                this.media_type = media_type;
            }

            public int getPublished_at() {
                return published_at;
            }

            public void setPublished_at(int published_at) {
                this.published_at = published_at;
            }

            public int getSelection() {
                return selection;
            }

            public void setSelection(int selection) {
                this.selection = selection;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public List<?> getAd_monitors() {
                return ad_monitors;
            }

            public void setAd_monitors(List<?> ad_monitors) {
                this.ad_monitors = ad_monitors;
            }

            public static class AuthorBean {
                @Override
                public String toString() {
                    return "AuthorBean{" +
                            "avatar_url='" + avatar_url + '\'' +
                            ", avatar_webp_url=" + avatar_webp_url +
                            ", created_at=" + created_at +
                            ", id=" + id +
                            ", nickname='" + nickname + '\'' +
                            '}';
                }

                private String avatar_url;
                private Object avatar_webp_url;
                private int created_at;
                private int id;
                private String nickname;

                public String getAvatar_url() {
                    return avatar_url;
                }

                public void setAvatar_url(String avatar_url) {
                    this.avatar_url = avatar_url;
                }

                public Object getAvatar_webp_url() {
                    return avatar_webp_url;
                }

                public void setAvatar_webp_url(Object avatar_webp_url) {
                    this.avatar_webp_url = avatar_webp_url;
                }

                public int getCreated_at() {
                    return created_at;
                }

                public void setCreated_at(int created_at) {
                    this.created_at = created_at;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }
            }

            public static class ColumnBean {
                @Override
                public String toString() {
                    return "ColumnBean{" +
                            "banner_image_url='" + banner_image_url + '\'' +
                            ", category='" + category + '\'' +
                            ", cover_image_url='" + cover_image_url + '\'' +
                            ", created_at=" + created_at +
                            ", description='" + description + '\'' +
                            ", id=" + id +
                            ", order=" + order +
                            ", post_published_at=" + post_published_at +
                            ", status=" + status +
                            ", subtitle='" + subtitle + '\'' +
                            ", title='" + title + '\'' +
                            ", updated_at=" + updated_at +
                            '}';
                }

                private String banner_image_url;
                private String category;
                private String cover_image_url;
                private int created_at;
                private String description;
                private int id;
                private int order;
                private int post_published_at;
                private int status;
                private String subtitle;
                private String title;
                private int updated_at;

                public String getBanner_image_url() {
                    return banner_image_url;
                }

                public void setBanner_image_url(String banner_image_url) {
                    this.banner_image_url = banner_image_url;
                }

                public String getCategory() {
                    return category;
                }

                public void setCategory(String category) {
                    this.category = category;
                }

                public String getCover_image_url() {
                    return cover_image_url;
                }

                public void setCover_image_url(String cover_image_url) {
                    this.cover_image_url = cover_image_url;
                }

                public int getCreated_at() {
                    return created_at;
                }

                public void setCreated_at(int created_at) {
                    this.created_at = created_at;
                }

                public String getDescription() {
                    return description;
                }

                public void setDescription(String description) {
                    this.description = description;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getOrder() {
                    return order;
                }

                public void setOrder(int order) {
                    this.order = order;
                }

                public int getPost_published_at() {
                    return post_published_at;
                }

                public void setPost_published_at(int post_published_at) {
                    this.post_published_at = post_published_at;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public String getSubtitle() {
                    return subtitle;
                }

                public void setSubtitle(String subtitle) {
                    this.subtitle = subtitle;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public int getUpdated_at() {
                    return updated_at;
                }

                public void setUpdated_at(int updated_at) {
                    this.updated_at = updated_at;
                }
            }
        }
    }
}
